#include "my_back_insert_iterator.h"
#include <algorithm>
#include <iostream>
#include <vector>
#include <list>

int main(int argc, char** argv) {
	vector<int> v{1, 2, 3, 4, 5, 6, 7, 8};
	list<int> l{9, 10, 11};
	copy(l.begin(), l.end(), my_back_insert_iterator<vector<int>>(v));
	for (vector<int>::iterator it = v.begin(); it != v.end(); it++) {
		cout << *it << "  ";
	}
	cout << endl;
	return 0;
}

